home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / public / bit / src / uproto.h < prev    next >
C/C++ Source or Header  |  1994-08-01  |  3KB  |  75 lines

  1. /*
  2.  * $Id: uproto.h,v 0.91 1994/02/20 00:53:39 zhao Pre-Release $
  3.  *
  4.  *. This file is part of BIT shareware package. After the two weeks of
  5.  *  free evaluation period, you are encouraged (required) to register
  6.  *  your copy for a small registration fee, which is $35 for personal use
  7.  *  and $50 for commercial, government and institutional use.
  8.  *
  9.  *  Copyright(c) 1993, 1994 by T.C. Zhao.
  10.  *  All rights reserved.
  11.  *
  12.  *  Permission to use, copy, and distribute this software in its entirety
  13.  *  for non-commercial purposes is hereby granted, provided that the
  14.  *  above shareware and copyright notices and this permission notice
  15.  *  appear in all copies and their documentation.
  16.  *
  17.  *  This software may be modified for your own use, but modified versions
  18.  *  may not be distributed without prior consent of the author.
  19.  *
  20.  *  This software is provided "as is" without expressed or implied
  21.  *  warranty of any kind.
  22.  *
  23.  *.
  24.  *
  25.  *  Prototypes for the utilities
  26.  */
  27.  
  28. #ifndef BIT_UPROTO_H
  29. #define BIT_UPROTO_H
  30.  
  31. #include "utype.h"
  32.  
  33. /*********** matrix operations  **************/
  34.  
  35. extern void set_use_calloc(int);
  36. extern void *dbg_getmat(int, int, size_t, const char *, int);
  37. extern void make_mat(void *, void *, int, int, size_t);
  38.  
  39. #ifndef M_DBG
  40. extern void *get_mat(int, int, size_t);
  41. #else
  42. #ifndef get_mat
  43. #define get_mat(a,b,c)   dbg_getmat(a,b,c,__FILE__,__LINE__)
  44. #endif
  45. #endif
  46.  
  47. extern void free_mat(void *);
  48. extern void *get_3d(int, int, int, size_t);
  49. extern void free_3d(void *);
  50. extern void *get_submat(void *, int, int, int, int, int, int, size_t);
  51. extern int put_submat(void *, int, int, void *, int, int, int, int, size_t);
  52. extern int flip_mat(void *, int, int, int, size_t);
  53. extern void *rotate_mat(void *, int, int, int, size_t);
  54. extern void set_matop_quiet(int);
  55. extern void fill_submat(void *, int, int, int, int, rgba_t, size_t);
  56. extern void set_mat_op(Matop_t);
  57. extern Matop_t get_mat_op(void);
  58. extern void set_magic_pix(rgba_t);
  59. extern rgba_t get_magic_pix(void);
  60. extern void pack_mat(rgba_t *, pc_t *, pc_t *, pc_t *, long);
  61. extern void unpack_mat(rgba_t *, pc_t *, pc_t *, pc_t *, long);
  62. extern void init_mat(void *, int, int, size_t, unsigned long);
  63.  
  64. /******* cmaps *********/
  65. extern void set_colmap(int, pc_t *, pc_t *, pc_t *);
  66. extern void set_cmap(CMPTR);
  67. extern void get_colmap(int, pc_t *, pc_t *, pc_t *);
  68. extern void modify_cmap(CMPTR, pc_t *, pc_t *, pc_t *);
  69. extern void pack_cmap(CMPTR);
  70. extern void clean_up(void);
  71. extern int cmap_ucolors(CMPTR, pc_t *);
  72.  
  73. #include "mac.h"
  74. #endif /* !U_PROTO_H_ */
  75.